Special Forums UNIX and Linux Applications Infrastructure Monitoring Using Node-RED and MQTT to Monitor Server and Application Stats Post 303043733 by Neo on Wednesday 5th of February 2020 07:28:19 AM
Well, those changes did not help much.... looks like here is some "underground" process running every three hours causing the spikes:

Using Node-RED and MQTT to Monitor Server and Application Stats-screen-shot-2020-02-05-72457-pmjpg


I checked all the forum software and all the cron files on the server, but so far, no joy in finding the process causing the intermittent performance hit.
 
Test Your Knowledge in Computers #534
Difficulty: Medium
All programming languages have an explicit Boolean type.
True or False?

7 More Discussions You Might Find Interesting

1. AIX

How to add node to the cluster with stoping the application?

In the production hacmp 5.3 is running with three nodes but i want to add new node to cluster with out stopping the application ie with same resource group if any bady know pls help me. (1 Reply)
Discussion started by: manjunath.m
1 Replies

2. AIX

powerha application monitor restart counter?

I have configured a custom application monitor with restart count = 3. say the application has restarted 2 times, if the application fail 2 more times within restart interval, it will failover. Is there any counter to tell me the recent restart count? Thanks!! (1 Reply)
Discussion started by: skeyeung
1 Replies

3. Homework & Coursework Questions

Accessing one UNIX node from another node of the same server

Hi Experts, I am in need of running a script from one node say node 1 via node 2. My scheduling tool dont have access to node2 , so i need to invoke the list file from node1 but the script needs to run from node2. because the server to which i am hitting, is having access only for the node... (5 Replies)
Discussion started by: arun1377
5 Replies

4. Red Hat

Red Hat application server ssl keystore problem

A client is accessing our JBoss server. In the past, we set up a keystore and everything worked fine. That certificat expired and we've installed the new one. Now the client is getting the following error - HTTP/1.1 500 Internal Server Error Date: Mon, 14 Apr 2014 13:25:44 GMT Server:... (1 Reply)
Discussion started by: kkinney
1 Replies

5. Programming

ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages

Here we go.... Preface: ..... so in a galaxy far, far, far away from commercial, data sharing corporations..... For this project, I used the ESP-WROOM-32 as an MQTT (publish / subscribe) client which receives Linux server "load averages" as messages published as MQTT pub/sub messages.... (6 Replies)
Discussion started by: Neo
6 Replies

6. Programming

Publish and Subscribe to AES-256 Encrypted MQTT Messages to Node-RED from PHP Scripts

Various Node-Red crypto modules do not work with PHP, so to send an encrypted message from a PHP script (in this case from a Ubuntu server) to Node-RED we need our own code. After a few hours of searching, testing various libs, more testing and debugging, I got this PHP to Node-RED code... (0 Replies)
Discussion started by: Neo
0 Replies

7. Programming

Node-RED: Writing MQTT Messages to MySQL DB with UNIX timestamp

First, I want to thank Neo (LOL) for this post from 2018, Node.js and mysql - ER_ACCESS_DENIED_ERROR I could not get the Node-RED mysql module to work and searched Google until all my links were purple! I kept getting ER_ACCESS_DENIED_ERROR with the right credentials. Nothing on the web was... (0 Replies)
Discussion started by: Neo
0 Replies
libmosquitto(3) 														   libmosquitto(3)

NAME
libmosquitto - MQTT version 3.1 client library DESCRIPTION
This is an overview of how to use libmosquitto to create MQTT aware client programs. There may be separate man pages on each of the func- tions described here in the future. There are also bindings for libmosquitto for C++ and Python. They are not documented here. This is fairly incomplete, please see mosquitto.h for a better description of the functions. STATUS
The libmosquitto api is currently regarded as experimental and unstable and may change in future releases. LIBMOSQUITTO SYMBOL NAMES
All public functions in libmosquitto have the prefix "mosquitto_". Any other functions defined in the source code are to be treated as pri- vate functions and may change between any release. Do not use these functions! FUNCTIONS
LIBRARY VERSION unsigned long mosquitto_lib_version (int *major, int *minor, int *revision); Obtain version information about the library. If any of major, minor or revision are not NULL they will return the corresponding version numbers. The return value is an integer representation of the complete version number (e.g. 9000 for 0.9) that can be used for comparisons. LIBRARY INITIALISATION AND CLEANUP int mosquitto_lib_init (void); int mosquitto_lib_cleanup (void); CLIENT CONSTRUCTOR/DESTRUCTOR struct mosquitto *mosquitto_new (const char *id, void *obj); void mosquitto_destroy (struct mosquitto *mosq); LOGGING int mosquitto_log_init (struct mosquitto *mosq, int priorities, int destinations); Configure the logging settings for this client. Returns 0 on success, 1 on error. Set priorities by ORing any of the items in the following list: o MOSQ_LOG_INFO o MOSQ_LOG_NOTICE o MOSQ_LOG_WARNING o MOSQ_LOG_ERROR o MOSQ_LOG_DEBUG Set destinations by ORing any of the items in the following list: o MOSQ_LOG_NONE o MOSQ_LOG_STDOUT o MOSQ_LOG_STDERR WILLS int mosquitto_will_set (struct mosquitto *mosq, bool will, const char *topic, uint32_t payloadlen, const uint8_t *payload, int qos, bool retain); CONNECT/DISCONNECT void mosquitto_connect (struct mosquitto *mosq, const char *host, int port, int keepalive, bool clean_session); void mosquitto_reconnect (struct mosquitto *mosq); int mosquitto_disconnect (struct mosquitto *mosq); PUBLISH int mosquitto_publish (struct mosquitto *mosq, uint16_t *mid, const char *topic, uint32_t payloadlen, const uint8_t *payload, int qos, bool retain); SUBSCRIBE/UNSUBSCRIBE int mosquitto_subscribe (struct mosquitto *mosq, uint16_t *mid, const char *sub, int qos); int mosquitto_unsubscribe (struct mosquitto *mosq, uint16_t *mid, const char *sub); NETWORK LOOP int mosquitto_loop (struct mosquitto *mosq, int timeout); int mosquitto_loop_read (struct mosquitto *mosq); int mosquitto_loop_write (struct mosquitto *mosq); int mosquitto_loop_misc (struct mosquitto *mosq); int mosquitto_socket (struct mosquitto *mosq); CALLBACKS See mosquitto.h EXAMPLES
#include <mosquitto.h> void my_message_callback(void *obj, struct mosquitto_message *message) { if(message->payloadlen){ printf("%s %s ", message->topic, message->payload); }else{ printf("%s (null) ", message->topic); } fflush(stdout); } void my_connect_callback(void *obj, int result) { struct mosquitto *mosq = obj; int i; if(!result){ mosquitto_subscribe(mosq, topics[i], topic_qos); }else{ fprintf(stderr, "Connect failed "); } } void my_subscribe_callback(void *obj, uint16_t mid, int qos_count, const uint8_t *granted_qos) { int i; printf("Subscribed (mid: %d): %d", mid, granted_qos[0]); for(i=1; i<qos_count; i++){ printf(", %d", granted_qos[i]); } printf(" "); } int main(int argc, char *argv[]) { char id[30]; int i; char *host = "localhost"; int port = 1883; int keepalive = 60; bool clean_session = true; struct mosquitto *mosq = NULL; mosq = mosquitto_new(id, NULL); if(!mosq){ fprintf(stderr, "Error: Out of memory. "); return 1; } mosquitto_log_init(mosq, MOSQ_LOG_DEBUG | MOSQ_LOG_ERR | MOSQ_LOG_WARNING | MOSQ_LOG_NOTICE | MOSQ_LOG_INFO, MOSQ_LOG_STDERR); mosquitto_connect_callback_set(mosq, my_connect_callback); mosquitto_message_callback_set(mosq, my_message_callback); mosquitto_subscribe_callback_set(mosq, my_subscribe_callback); if(mosquitto_connect(mosq, host, port, keepalive, clean_session)){ fprintf(stderr, "Unable to connect. "); return 1; } while(!mosquitto_loop(mosq, -1)){ } mosquitto_destroy(mosq); return 0; } SEE ALSO
mosquitto(8) mqtt(7) AUTHOR
Roger Light <roger@atchoo.org> 5 February 2012 libmosquitto(3)

Featured Tech Videos

All times are GMT -4. The time now is 10:51 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy